import {
  get,
  post,
  deleteFun
} from "../api"

//获取
export const getInfo = data => get('/bmj-api/api/ums/umsUsers/getMemberServiceInfo', data)

//添加企业名片
export const addCompanyBusinessCard = data => post('/bmj-api/api/cms/cmsBusinessCard/addCompanyBusinessCard', data)

//取消收藏企业名片
export const cancelCollectCompanyBusinessCard = data => post('/bmj-api/api/cms/cmsBusinessCard/cancelCollectCompanyBusinessCard', data)

//收藏企业名片
export const collectCompanyBusinessCard = data => post('/bmj-api/api/cms/cmsBusinessCard/collectCompanyBusinessCard', data)

//企业用户名片分页列表
export const companyBusinessCardPageList = data => get('/bmj-api/api/cms/cmsBusinessCard/companyBusinessCardPageList', data)

//企业名片详情
export const getCompanyBusinessCardInfo = data => get('/bmj-api/api/cms/cmsBusinessCard/getCompanyBusinessCardInfo', data)

//我的企业名片收藏列表
export const collectList = data => get('/bmj-api/api/cms/cmsBusinessCard/queryMyCompanyBusinessCardCollectList', data)

//分享名片
export const shareBusinessCard = data => post('/bmj-api/api/cms/cmsBusinessCard/shareBusinessCard', data)

//解除公司名片绑定
export const updateCompanyBusinessCardBind = data => post('/bmj-api/api/cms/cmsBusinessCard/updateCompanyBusinessCardBind', data)

//修改企业名片
export const updateCompanyBusinessCardInfo = data => post('/bmj-api/api/cms/cmsBusinessCard/updateCompanyBusinessCardInfo', data)

//修改企业用户名片置顶状态
export const updateCompanyBusinessCardTopStatus = data => post('/bmj-api/api/cms/cmsBusinessCard/updateCompanyBusinessCardTopStatus', data)

// 搜索记录删除
export const deleteSearch = (data) => deleteFun(`/bmj-api/api/cms/cmsSearchRecord/delete`, data)

// 搜索记录列表
export const searchHistoryList = (data) => get(`/bmj-api/api/cms/cmsSearchRecord/list`, data)

// 获取公司详情
export const getCompanyInfo = (data) => get(`/bmj-api/api/cms/cmsCompany/getCompanyInfo`, data)

// 获取公司专利列表
export const getPatent = (data) => get(`/bmj-api/api/cms/cmsPatent/list`, data)

// 获取公司商标列表
export const getTrademark = (data) => get(`/bmj-api/api/cms/cmsTrademark/list`, data)

// 获取公司软著列表
export const getSoft = (data) => get(`/bmj-api/api/cms/cmsSoft/list`, data)

// 获取公司荣誉列表
export const getHonor = (data) => get(`/bmj-api/api/cms/cmsHonorProject/list`, data)

// 获得创新型中小企业评估
export const getDeclare = (data) => post(`/bmj-api/api/cms/cmsCompany/getInnovativeSmallToMediumCompanyEvaluation`, data)

// 获得专精特新中小企业评估
export const getDeclareSmall = (data) => post(`/bmj-api/api/cms/cmsCompany/getSpecializedAndSpecialCompanyEvaluation`, data)

// 获得高新技术企业评估
export const getDeclareHigh = (data) => post(`/bmj-api/api/cms/cmsCompany/getHighTechCompanyEvaluation`, data)

// 获得科技型中小企业评估
export const getDeclareScience = (data) => post(`/bmj-api/api/cms/cmsCompany/getTechnologyCompanyEvaluation`, data)

// 添加企业名片(新)
export const addcmsBusinessCard = (data) => post(`/bmj-api/api/cms/cmsBusinessCard/cmsBusinessCard`, data)